<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="{url('label/index')}">调用标签</a></div>
<div class="button-nav">
    <a href="###" url="{url('label/add',array('type'=>'1'))}" class="button button-blank button-link win" title="增加栏目标签"><i class="iconfont" title="增加栏目标签">&#xF023;</i> 增加栏目标签</a><a href="###" url="{url('label/add',array('type'=>'2'))}" class="button button-blank win" title="增加内容标签"><i class="iconfont" title="增加内容标签">&#xF023;</i> 增加内容标签</a>
</div>
<div class="m5">
<table class="table table-bordered table-striped" width="100%">
<thead><tr><th class="w20 fn-tac">#</th><th class="w60 fn-tac">标签类型</th><th class="fn-tal">标签名称和参数</th><th class="fn-tac w120">创建时间</th><th class="fn-tac w80">操作</th></tr></thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac">{$vo['id']}</td>
    <td class="fn-tac"><span class="fn-f14 blue">{if $vo['type']==1}栏目标签{else}内容标签{/if}</span></td>
    <td class="fn-tal">
    	<a class="win" title="编辑标签:{$vo['title']}" href="###" url="{url('label/edit',array('type'=>$vo['type'],'id'=>$vo['id']))}">{$vo['title']}<a/>
    	[ <span class="gray fn-f14">{if $vo['type']==1}
{if $vo['es_locks'] == 1}锁定栏目{else}动态栏目{/if}、{if $vo['es_order']}排序:{$vo['es_order']}{/if}、{if $vo['es_where']}SQL语句Where条件:{$vo['es_where']}{/if}
{else}{if $vo['es_search']}支持搜索{else}禁止搜索{/if}、{if $vo['es_subclass']}包含子类{else}不包含子类{/if}、{if $vo['es_locks'] == 1}锁定栏目{elseif $vo['es_locks'] == 2}绑定模型{else}动态栏目{/if}、{if $vo['es_special']}特性ID:{$vo['es_special']}{/if}、{if $vo['es_limits']}数量{$vo['es_limits']}条{/if}、{if $vo['es_order']}排序:{$vo['es_order']}{/if}</span>{/if} ]
    </td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac tip">
        <a class="win" title="编辑标签:{$vo['title']}" href="###" url="{url('label/edit',array('type'=>$vo['type'],'id'=>$vo['id']))}">编辑</a>/<a title="删除" class="del" url="{url('label/index',array(id=>$vo['id'],act=>del))}" href="###">删除</a>
    </td>
</tr>
{/loop}
</tbody>
</table>
</div>
<div id="page" class="right m5">{$page}</div>
<script type="text/javascript">
Do('base','Dialog',function(){
  $(".win").click(function(){
    $(this).cpWindows();
  });
  $('.del').click(function(){
    $(this).cpDelete();
  });
})
</script>
</body>